package com.vois.jack.btmgr.devices.F1Dev;

public enum F1BleMsg {
    F1BLE_GET_WIFI_INFO_MSG(0x90),
    F1BLE_GET_WIFI_LIST_COMPLETED_MSG(0x91),
    F1BLE_GET_WIFI_LIST_ACK_MSG(0x92),
    F1BLE_ADD_WIFI_CONFIG_ACK_MSG(0x93),
    F1BLE_MODIFY_AP_CONFIG_ACK_MSG(0x94),
    F1BLE_GET_WIFI_LIST_TIMEOUT_MSG(0x95),
    F1BLE_ADD_WIFI_CONFIG_TIMEOUT_MSG(0x96),
    F1BLE_NONE(-1);

    private final int value;

    private F1BleMsg(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public static F1BleMsg valueOf(int value) {
        F1BleMsg msg = null;
        switch (value) {
            case 0x90: {
                msg = F1BLE_GET_WIFI_INFO_MSG;
            }
            break;

            case 0x91: {
                msg = F1BLE_GET_WIFI_LIST_COMPLETED_MSG;
            }
            break;

            case 0x92: {
                msg = F1BLE_GET_WIFI_LIST_ACK_MSG;
            }
            break;

            case 0x93: {
                msg = F1BLE_ADD_WIFI_CONFIG_ACK_MSG;
            }
            break;

            case 0x94: {
                msg = F1BLE_MODIFY_AP_CONFIG_ACK_MSG;
            }
            break;

            default: {
                msg = F1BLE_NONE;
            }
            break;
        }

        return msg;
    }
}
